package com.lxk.pojo;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Seckill implements Serializable {
    private Integer seckillId;
    @NotNull
    private Integer goodsId;
    @NotNull
    private BigDecimal seckillPrice;

    private Integer totalCount;
    @NotNull
    private Integer seckillCount;
    @NotNull
    private Date seckillBeginTime;

    private Date seckillEndTime;

    private Integer isClosed;

    private static final long serialVersionUID = 1L;

    public Integer getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Integer seckillId) {
        this.seckillId = seckillId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public BigDecimal getSeckillPrice() {
        return seckillPrice;
    }

    public void setSeckillPrice(BigDecimal seckillPrice) {
        this.seckillPrice = seckillPrice;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getSeckillCount() {
        return seckillCount;
    }

    public void setSeckillCount(Integer seckillCount) {
        this.seckillCount = seckillCount;
    }

    public Date getSeckillBeginTime() {
        return seckillBeginTime;
    }

    public void setSeckillBeginTime(Date seckillBeginTime) {
        this.seckillBeginTime = seckillBeginTime;
    }

    public Date getSeckillEndTime() {
        return seckillEndTime;
    }

    public void setSeckillEndTime(Date seckillEndTime) {
        this.seckillEndTime = seckillEndTime;
    }

    public Integer getIsClosed() {
        return isClosed;
    }

    public void setIsClosed(Integer isClosed) {
        this.isClosed = isClosed;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", seckillId=").append(seckillId);
        sb.append(", goodsId=").append(goodsId);
        sb.append(", seckillPrice=").append(seckillPrice);
        sb.append(", totalCount=").append(totalCount);
        sb.append(", seckillCount=").append(seckillCount);
        sb.append(", seckillBeginTime=").append(seckillBeginTime);
        sb.append(", seckillEndTime=").append(seckillEndTime);
        sb.append(", isClosed=").append(isClosed);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}